<template>
  <div class="tabBox">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane v-if="this.menuList.includes('levelStudent')" label="学校信息" name="information">
          <information></information>
        </el-tab-pane>
        <el-tab-pane v-if="this.menuList.includes('studentAdminister')" label="测评记录" name="record">
          <record></record>
        </el-tab-pane>
        <el-tab-pane v-if="this.menuList.includes('studentAdminister')" label="测评报告" name="report">
          <report></report>
        </el-tab-pane>
      </el-tabs>
    </div>
</template>
<script>
import information from './information'
import record from './record'
import report from './report'
export default {
  components: {
    information,
    record,
    report
  },
  data () {
    return {
      activeName: 'information',
      menuList: []
    }
  },
  created () {
    this.menuList = sessionStorage.getItem('list')
  }
}
</script>
